const versions = require('../config/config').versions
const getVersionsUrl = (url) => {
	if(url.indexOf('/') != 0) {
		url = '/' + url;
	}
	var urlArr = url.split('/');
	urlArr[1] = versions
	
	return urlArr.join('/');
}
export {
	getVersionsUrl
}
